#include "ohos_init.h"
#include "los_task.h"
// #include "los_queue.h"
// #include "oc_mqtt.h"
// #include "MQTTClient.h"
// #include "e53_intelligent_agriculture.h"

// #include "nfc.h"

// #include <time.h>
// #include <stdlib.h>
// #include <string.h>


// #define URI "192.168.1.104:9090/"

// #define MSG_QUEUE_LENGTH                16
// #define BUFFER_LEN                      200
// static unsigned int MsgQueueID;

// #define MQTT_SERVER_IP              "192.168.1.104"
// #define MQTT_SERVER_PORT            1883

// static unsigned char sendBuf[1000];
// static unsigned char readBuf[1000];

// static Network network;

// #define ON      1;
// #define OFF     0;
// typedef struct
// {
//     int light_status;
//     int motor_status;
// } status_t;

// static int get_status__(cJSON *elem)
// {
//     if(cJSON_IsTrue(elem))
//         return ON;
//     return OFF;
// }



#include "tasksInit.h"
#include <stdio.h>




void my_app()
{
    unsigned int ret = LOS_OK;

    printf("----->Enter my_app\n");

    tasksInit_handler.pfnTaskEntry = (TSK_ENTRY_FUNC)tasksInit;
    tasksInit_handler.uwStackSize = 1280;
    tasksInit_handler.pcName = "tasksInit";
    tasksInit_handler.usTaskPrio = 2;

    ret = LOS_TaskCreate(&tasksInit_id, &tasksInit_handler);
    if(LOS_OK != ret)
    {
        //error
        printf("Los_taskCreate tasksInit err, code: %x\n", ret);
    }

    printf("----->Exit my_app\n");

}

APP_FEATURE_INIT(my_app);
